%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Code Snippet
% LaTeX Template
% Version 1.0 (14/2/13)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Velimir Gayevskiy (vel@latextemplates.com)
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass{article}
\input{macros.tex}

\begin{document}
% The first argument is the script location/filename and the second is a caption for the listing
\insertcode{"Scripts/example.pl"}{Nena would be proud.} 
\insertjava{"Scripts/Fraction.java"}{Java}{Java Code: A Fraction Class}

\end{document}